﻿namespace OConf.NetCore.Model
{
    /// <summary>
    /// 客户端获取配置信息返回参数
    /// </summary>
    public class BackProgramConfigInfo
    {
        /// <summary>
        /// 项目最近发布时间
        /// </summary>
        public long LastPublishTime { get; set; }

        /// <summary>
        /// 命名空间信息及配置信息
        /// </summary>
        public List<BackCNameSpaceModel> NameSpaces { get; set; }
    }

    /// <summary>
    /// 客户端获取配置信息返回参数 命名空间模型
    /// </summary>
    public class BackCNameSpaceModel
    {
        /// <summary>
        /// 命名空间名称
        /// </summary>
        public string NameSpace { get; set; }
        /// <summary>
        /// 配置信息
        /// </summary>
        public List<ConfigInfo> ConfigInfos { get; set; }
    }

    /// <summary>
    /// 配置信息
    /// </summary>
    public class ConfigInfo
    {
        public string Key { get; set; }
        public string Value { get; set; }
    }

    /// <summary>
    /// 项目配置信息
    /// </summary>
    public class ProjectConfigModel
    {
        /// <summary>
        /// 项目最近发布时间
        /// </summary>
        public long LastPublishTime { get; set; }
    }
}
